const app = getApp()
Page({


  data: {
    titleScore: 0,
    userInfo: {}
  },


  onShow: function(){
    this.data.userInfo = wx.getStorageSync("userInfo")
    let totalScore = 0

    for(let key in this.data.userInfo.score){
      totalScore += parseInt(this.data.userInfo.score[key])
    }
    this.setData({
      titleScore: totalScore
    })
  },

  toSpeechInput(){
    wx.navigateTo({
      url: '../tagInput/tagInput',
    })
  },
  toRecordInput(){
    wx.navigateTo({
      url: '../main/main',
    })
  },
  toTableInput(){
    wx.navigateTo({
      url: '../index/index',
    })
  },
  

})